<%-- 
    Document   : showAste
    Created on : Jan 10, 2013, 2:15:57 PM
    Author     : berto
--%>

<%@page import="java.util.List"%>
<%@page import="it.unitn.science.matr155863_148346_145963.bccastestore.items.Asta"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
         String title=(String)request.getAttribute("title");
         List<Asta> aste =(List<Asta>) request.getAttribute("aste");
        %>
        <div class="content">
            <h2><%=title%></h2>
            <br/>
            <%
            if(aste.isEmpty()){
                %>
                <h4>There isn't any asta</h4>
                <%
            }else{
               for(Asta a:aste){
                  request.setAttribute("asta", a);
                  %>  
                  <jsp:include page="../user/astaDetails.jsp" flush="true" />
                      <hr>  
                      <br/><br/>
                  <%
                }
              }
            %>                      
        </div>
    </body>
</html>
